1 -- this (function) script uses 8 values stored in GVAR9 (for fase 0 to 8)
2 -- the first 4 values are the flow in ml/min (min = 30, max = 800) ; the values must be in ascending order
3 -- the last 4 values are the correction in percent to apply (min = -100, max = 100) for each flow
16 local timenow
= getTime() -- 10ms tick count
18 if timenow
- timeprev
> 10 then-- more than 100 msec since previous run
24 local param
= model
.getGlobalVariable(8, idx
) -- get value of gvar 9 for each flight mode
40 local ret
= sportTelemetryPush( 0x0D , 0X10 , idx
, param
)
44 return { init
=init
, run
=run
}